package com.zzx.boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzx.boot.entity.User;
import com.zzx.boot.entity.vo.UserInfoVo;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过手机号或者用户名 密码查询用户
     * @param weixinNumber
     * @param phone
     * @param password
     * @return
     */
    User selectUserByUsernameAndPassword(@Param("weixinNumber") String weixinNumber,@Param("phone")String phone, @Param("password") String password);

    /**
     * 通过手机号或者微信号查询用户信息
     * @param weixinNumber
     * @param phone
     * @return
     */
    UserInfoVo selectUserInfoByUsername(@Param("weixinNumber") String weixinNumber,@Param("phone")String phone);

    UserInfoVo getUserInfoById(@Param("id")Long id);
}
